package org.jeecg.modules.demo.zyExam.zypaperjudgequestion.service.impl;

import org.jeecg.modules.demo.zyExam.zypaperjudgequestion.entity.ZyPaperJudgeQuestion;
import org.jeecg.modules.demo.zyExam.zypaperjudgequestion.mapper.ZyPaperJudgeQuestionMapper;
import org.jeecg.modules.demo.zyExam.zypaperjudgequestion.service.IZyPaperJudgeQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 题库判断题
 * @Author: jeecg-boot
 * @Date:   2025-05-23
 * @Version: V1.0
 */
@Service
public class ZyPaperJudgeQuestionServiceImpl extends ServiceImpl<ZyPaperJudgeQuestionMapper, ZyPaperJudgeQuestion> implements IZyPaperJudgeQuestionService {
    @Autowired
    private ZyPaperJudgeQuestionMapper zyPaperJudgeQuestionMapper;
    @Override
    public List<String> findBySubject(String subject, Integer judgeNumber) {
        return zyPaperJudgeQuestionMapper.findBySubject(subject,judgeNumber);

    }

    @Override
    public List<ZyPaperJudgeQuestion> findByIdAndType(String paperCode) {
        return zyPaperJudgeQuestionMapper.findByIdAndType(paperCode);
    }
}
